<template>
  <svg class="svg-icon" aria-hidden="true" :style="{'height': props.size + 'rem','width': props.size + 'rem'  }">
    <use :xlink:href="iconName" fill="" />
  </svg>
</template>
<script setup>
import { computed } from 'vue';

const props = defineProps({
  name: {
    type: String,
    required: true
  },
  size: {
    type: String,
    default: '1.5'
  }
});

const iconName = computed(() => `#icon-${props.name}`);

</script>
<style scoped>
.svg-icon {
  position: relative;
  fill: currentColor;
  vertical-align: -2px;
}
</style>
